package com.jc.ds.model;

/**
 * supplier_product_price
 * @author 
 */
public class SupplierProductPrice extends BaseValueObject {
    private Long id;

    /**
     * 供应商产品表主键ID
     */
    private Long supplierProductId;

    /**
     * 不含税价格 单位：分
     */
    private Integer cooperateprice;

    /**
     * 含税价格 单位：分
     */
    private Integer taxcooperateprice;

    /**
     * 市场价 单位：分
     */
    private Integer saleprice;

    /**
     * 现金售价 单位：分
     */
    private Integer moneyPrice;

    /**
     * 君卡售价 单位：分
     */
    private Integer leve1Price;

    /**
     * 王卡售价 单位：分
     */
    private Integer leve2Price;

    /**
     * 帝卡售价 单位：分
     */
    private Integer leve3Price;

    /**
     * 尊卡售价 单位：分
     */
    private Integer leve4Price;

    /**
     * 成本价 单位：分
     */
    private Integer costPrice;

    /**
     * 联创成本价 单位：分
     */
    private Integer unionCostPrice;

    /**
     * 默认运费 单位：分
     */
    private Integer defaultFreight;

    private String orderStr = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSupplierProductId() {
        return supplierProductId;
    }

    public void setSupplierProductId(Long supplierProductId) {
        this.supplierProductId = supplierProductId;
    }

    public Integer getCooperateprice() {
        return cooperateprice;
    }

    public void setCooperateprice(Integer cooperateprice) {
        this.cooperateprice = cooperateprice;
    }

    public Integer getTaxcooperateprice() {
        return taxcooperateprice;
    }

    public void setTaxcooperateprice(Integer taxcooperateprice) {
        this.taxcooperateprice = taxcooperateprice;
    }

    public Integer getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(Integer saleprice) {
        this.saleprice = saleprice;
    }

    public Integer getMoneyPrice() {
        return moneyPrice;
    }

    public void setMoneyPrice(Integer moneyPrice) {
        this.moneyPrice = moneyPrice;
    }

    public Integer getLeve1Price() {
        return leve1Price;
    }

    public void setLeve1Price(Integer leve1Price) {
        this.leve1Price = leve1Price;
    }

    public Integer getLeve2Price() {
        return leve2Price;
    }

    public void setLeve2Price(Integer leve2Price) {
        this.leve2Price = leve2Price;
    }

    public Integer getLeve3Price() {
        return leve3Price;
    }

    public void setLeve3Price(Integer leve3Price) {
        this.leve3Price = leve3Price;
    }

    public Integer getLeve4Price() {
        return leve4Price;
    }

    public void setLeve4Price(Integer leve4Price) {
        this.leve4Price = leve4Price;
    }

    public Integer getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(Integer costPrice) {
        this.costPrice = costPrice;
    }

    public Integer getUnionCostPrice() {
        return unionCostPrice;
    }

    public void setUnionCostPrice(Integer unionCostPrice) {
        this.unionCostPrice = unionCostPrice;
    }

    public Integer getDefaultFreight() {
        return defaultFreight;
    }

    public void setDefaultFreight(Integer defaultFreight) {
        this.defaultFreight = defaultFreight;
    }

    public void orderById(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by id asc";
            }else{
                this.orderStr = this.orderStr + ",id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by id desc";
            }else{
                this.orderStr = this.orderStr + ",id desc";
            }
        }
    }

    public void orderBySupplierProductId(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by supplier_product_id asc";
            }else{
                this.orderStr = this.orderStr + ",supplier_product_id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by supplier_product_id desc";
            }else{
                this.orderStr = this.orderStr + ",supplier_product_id desc";
            }
        }
    }

    public void orderByCooperateprice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by cooperatePrice asc";
            }else{
                this.orderStr = this.orderStr + ",cooperatePrice asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by cooperatePrice desc";
            }else{
                this.orderStr = this.orderStr + ",cooperatePrice desc";
            }
        }
    }

    public void orderByTaxcooperateprice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by taxCooperatePrice asc";
            }else{
                this.orderStr = this.orderStr + ",taxCooperatePrice asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by taxCooperatePrice desc";
            }else{
                this.orderStr = this.orderStr + ",taxCooperatePrice desc";
            }
        }
    }

    public void orderBySaleprice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by salePrice asc";
            }else{
                this.orderStr = this.orderStr + ",salePrice asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by salePrice desc";
            }else{
                this.orderStr = this.orderStr + ",salePrice desc";
            }
        }
    }

    public void orderByMoneyPrice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by money_price asc";
            }else{
                this.orderStr = this.orderStr + ",money_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by money_price desc";
            }else{
                this.orderStr = this.orderStr + ",money_price desc";
            }
        }
    }

    public void orderByLeve1Price(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by leve1_price asc";
            }else{
                this.orderStr = this.orderStr + ",leve1_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by leve1_price desc";
            }else{
                this.orderStr = this.orderStr + ",leve1_price desc";
            }
        }
    }

    public void orderByLeve2Price(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by leve2_price asc";
            }else{
                this.orderStr = this.orderStr + ",leve2_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by leve2_price desc";
            }else{
                this.orderStr = this.orderStr + ",leve2_price desc";
            }
        }
    }

    public void orderByLeve3Price(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by leve3_price asc";
            }else{
                this.orderStr = this.orderStr + ",leve3_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by leve3_price desc";
            }else{
                this.orderStr = this.orderStr + ",leve3_price desc";
            }
        }
    }

    public void orderByLeve4Price(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by leve4_price asc";
            }else{
                this.orderStr = this.orderStr + ",leve4_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by leve4_price desc";
            }else{
                this.orderStr = this.orderStr + ",leve4_price desc";
            }
        }
    }

    public void orderByCostPrice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by cost_price asc";
            }else{
                this.orderStr = this.orderStr + ",cost_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by cost_price desc";
            }else{
                this.orderStr = this.orderStr + ",cost_price desc";
            }
        }
    }

    public void orderByUnionCostPrice(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by union_cost_price asc";
            }else{
                this.orderStr = this.orderStr + ",union_cost_price asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by union_cost_price desc";
            }else{
                this.orderStr = this.orderStr + ",union_cost_price desc";
            }
        }
    }

    public void orderByDefaultFreight(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by default_freight asc";
            }else{
                this.orderStr = this.orderStr + ",default_freight asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by default_freight desc";
            }else{
                this.orderStr = this.orderStr + ",default_freight desc";
            }
        }
    }
}